package cn.vihub.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 秋晚
 * @Date:  2025/7/18 16:14
 * @Description: 
 **/

/**
 * 菜单数据表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "shop_menu")
public class ShopMenu implements Serializable {
    /**
     * 菜单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 菜单路径
     */
    @TableField(value = "uri")
    private String uri;

    /**
     * 标识符
     */
    @TableField(value = "code")
    private String code;

    /**
     * 1菜单 2按钮
     */
    @TableField(value = "type_id")
    private Integer typeId;

    /**
     * 上级id
     */
    @TableField(value = "pid")
    private Integer pid;

    /**
     * 创建人
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 0正常 1删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;
}